<%@page import="com.railway.news.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<html>
<head>
<title><%=NewsColums.TABLE_ALIAS%>信息</title>
<%@ include file="/commons/listcssjs.jsp" %>		    
<script>	    
		$(document).ready(function(){
              $.get("${ctx}/news/News/getNewsById.do", {
                Action:"get",id:form1.id.value}, function (data, textStatus){			
	            var objs = eval("["+data+"]");	                    
                if(objs[0].context == undefined){        
                   return;
                }
              $('#newscontent').html(objs[0].context);
				});	      	

			
		});
		    </script>
</head>
<body>
	<s:form name="form1" action="/news/News/list.do" method="get" theme="simple">
		<input type="button" value="返回列表" onclick="window.location='${ctx}/news/News/list.do'"/>
		<input type="button" value="后退" onclick="history.back();"/>
		
		<s:hidden name="id" id="id" value="%{model.id}"/>
	
		<table class="formTable">
			<!--tr>	
				<td class="tdLabel"><%=NewsColums.ALIAS_CAT_ID%></td>	
				<td><s:property value="%{model.catId}" /></td>
			</tr-->
			<tr>	
				<td class="tdLabel"><%=NewsColums.ALIAS_TITLE%></td>	
				<td><s:property value="%{model.title}" /></td>
			</tr>

			<tr>	
				<td class="tdLabel"><%=NewsColums.ALIAS_CREATE_TIME%></td>	
				<td><s:property value="%{model.createTimeString}" /></td>
			</tr>
			<tr>	
				<td class="tdLabel"><%=NewsColums.ALIAS_CONTENT_TEXT%></td>	
				<td id="newscontent"></td>
			</tr>
			<tr>	
				<td class="tdLabel"><%=NewsColums.ALIAS_CONTENT_HTML%></td>	
				<td><s:property value="%{model.contentHtml}" /></td>
			</tr>
			<tr>	
				<td class="tdLabel"><%=NewsColums.ALIAS_FROM_NAME%></td>	
				<td><s:property value="%{model.fromName}" /></td>
			</tr>
			<tr>	
				<td class="tdLabel"><%=NewsColums.ALIAS_FROM_URL%></td>	
				<td><s:property value="%{model.fromUrl}" /></td>
			</tr>
			<!--tr>	
				<td class="tdLabel"><%=NewsColums.ALIAS_BROWSE%></td>	
				<td><s:property value="%{model.browse}" /></td>
			</tr>
			<tr>	
				<td class="tdLabel"><%=NewsColums.ALIAS_RECOM%></td>	
				<td><s:property value="%{model.recom}" /></td>
			</tr>
			<tr>	
				<td class="tdLabel"><%=NewsColums.ALIAS_TOP_STATE%></td>	
				<td><s:property value="%{model.topState}" /></td>
			</tr-->
			<tr>	
				<td class="tdLabel"><%=NewsColums.ALIAS_STATE%></td>	
				<td><s:property value="%{model.state}" /></td>
			</tr>
		</table>
	</s:form>
	</body>
</html>